home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / CAD / GNUPLOT3.ARJ / GNUPLOT.GIH < prev    next >
Text File  |  1991-10-05  |  85KB  |  2,252 lines

  1. ?
  2.  GNUPLOT is a command-driven interactive function plotting program. It
  3.  is case sensitive (commands and function names written in lowercase
  4.  are not the same as those written in CAPS). All command names may be
  5.  abbreviated, as long as the abbreviation is not ambiguous. Any number
  6.  of commands may appear on a line, separated by semicolons (;).
  7.  Strings are indicated with quotes.  They may be either single or double
  8.  quotation marks, e.g.,
  9.  
  10.           load "filename"
  11.           cd 'dir'
  12.  
  13.  Any command-line arguments are assumed to be names of files containing 
  14.  GNUPLOT commands, with the exception of standard X11 arguments, which
  15.  are processed first. Each file is loaded with the `load` command, in the
  16.  order specified. GNUPLOT exits after the last file is processed.  When
  17.  no load files are named, gnuplot enters into an interactive mode.
  18.  
  19.  Commands may extend over several input lines, by ending each 
  20.  line but the last with a backslash (\). The backslash must be the LAST
  21.  character on each line. The effect is as if the backslash and newline
  22.  were not there. That is, no white space is implied, nor is a comment
  23.  terminated. Therefore, commenting out a continued line comments out
  24.  the entire command (see `comment`).
  25.  
  26.  In this documentation, curly braces ({}) denote optional arguments to
  27.  many commands, and a vertical bar (|) separates mutually exclusive
  28.  choices.  GNUPLOT keywords or help topics are indicated by backquotes
  29.  or `boldface` (where available).  Angle brackets (<>) are used to mark
  30.  replaceable tokens.
  31.  
  32.  For help on any topic, type `help` followed by the name of the topic.
  33.  
  34.  The new GNUPLOT user should begin by reading about the `plot`
  35.  command (type `help plot`).
  36. ?cd
  37.  The `cd` command changes the working directory.
  38.  
  39.  Syntax:
  40.          cd "<directory-name>"
  41.  
  42.  The directory name must be enclosed in quotes.
  43.  
  44.  Examples:
  45.          cd 'subdir'
  46.          cd ".."
  47. ?clear
  48.  The `clear` command erases the current screen or output device as
  49.  specified by `set output`. This usually generates a formfeed on
  50.  hardcopy devices. Use `set terminal` to set the device type.
  51. ?line-editing
  52. ?editing
  53. ?history
  54.  The Unix and IBM PC versions of GNUPLOT support command-line editing.
  55.  Also, a history mechanism allows previous commands to be edited, and
  56.  re-executed. After the command line has been edited, a newline or
  57.  carriage return will enter the entire line regardless of where the
  58.  cursor is positioned.
  59.  
  60.  The editing commands are as follows:
  61.  
  62.  `Line editing`:
  63.  
  64.  ^B moves back a single character.
  65.  ^F moves forward a single character.
  66.  ^A moves to the beginning of the line.
  67.  ^E moves to the end of the line.
  68.  ^H and DEL delete the previous character.
  69.  ^D deletes the current character.
  70.  ^K deletes from current position to the end of line.
  71.  ^L,^R redraws line in case it gets trashed.
  72.  ^U deletes the entire line.
  73.  ^W deletes the last word.
  74.  
  75.  `History`:
  76.  
  77.  ^P moves back through history.
  78.  ^N moves forward through history.
  79.  
  80.  On the IBM PC the use of a TSR program such as DOSEDIT or CED may be
  81.  desired for line editing. For such a case GNUPLOT may be compiled with
  82.  no line editing capability (default makefile setup). Set READLINE in the
  83.  makefile and add readline.obj to the link file if GNUPLOT line editing
  84.  is to be used for the IBM PC. The following arrow keys may be used
  85.  on the IBM PC version if readline is used:
  86.  
  87.  Left  Arrow     - same as ^B.
  88.  Right Arrow     - same as ^F.
  89.  Ctl Left  Arrow - same as ^A.
  90.  Ctl Right Arrow - same as ^E.
  91.  Up    Arrow     - same as ^P.
  92.  Down  Arrow     - same as ^N.
  93. ?comments
  94.  Comments are supported as follows: a # may appear in most places in a line
  95.  and GNUPLOT will ignore the rest of the line. It will not have this
  96.  effect inside quotes, inside numbers (including complex numbers), inside
  97.  command substitutions, etc. In short, it works anywhere it makes sense
  98.  to work.
  99. ?environment
  100.  A number of shell environment variables are understood by GNUPLOT.
  101.  None of these are required, but may be useful.
  102.  
  103.  If GNUTERM is defined, it is used as the name of the terminal type to
  104.  be used. This overrides any terminal type sensed by GNUPLOT on start
  105.  up, but is itself overridden by the .gnuplot (or equivalent) start-up
  106.  file (see `start-up`), and of course by later explicit changes.
  107.  
  108.  On Unix, AmigaDOS, and MS-DOS, GNUHELP may be defined to be the pathname
  109.  of the HELP file (gnuplot.gih).
  110.  
  111.  On VMS, the symbol GNUPLOT$HELP should be defined as the name of 
  112.  the help library for GNUPLOT.
  113.  
  114.  On Unix, HOME is used as the name of a directory to search for 
  115.  a .gnuplot file if none is found in the current directory.
  116.  On AmigaDOS and MS-DOS, GNUPLOT is used. On VMS, SYS$LOGIN: is used.
  117.  See help start-up.
  118.  
  119.  On Unix, PAGER is used as an output filter for help messages.
  120.  
  121.  On Unix and AmigaDOS, SHELL is used for the `shell` command. On MS-DOS,
  122.  COMSPEC is used for the `shell` command.
  123.  
  124.  On AmigaDOS, GNUFONT is used for the screen font.  For example:
  125.  "setenv GNUFONT sapphire/14".
  126.  
  127.  On MS-DOS, if the BGI interface is used, the variable `BGI` is used to point 
  128.  to the full path to the BGI drivers directory. Furthermore SVGA is used to
  129.  name the Super VGA BGI driver in 800x600 res., and its mode of operation
  130.  as 'Name.Mode'.
  131.  For example, if the Super VGA driver is C:\TC\BGI\SVGADRV.BGI and mode 3 is
  132.  used for 800x600 res., then: 'set BGI=C:\TC\BGI' and 'set SVGA=SVGADRV.3'.
  133. ?exit
  134. ?quit
  135.  The commands `exit` and `quit` and the END-OF-FILE character
  136.  will exit GNUPLOT. All these commands will clear the output device
  137.  (as the `clear` command does) before exiting.
  138. ?expressions
  139.  In general, any mathematical expression accepted by C, FORTRAN,
  140.  Pascal, or BASIC is valid. The precedence of these operators is
  141.  determined by the specifications of the C programming language.
  142.  White space (spaces and tabs) is ignored inside expressions.
  143.  
  144.  Complex constants may be expressed as the {<real>,<imag>}, where <real>
  145.  and <imag> must be numerical constants. For example, {3,2}
  146.  represents 3 + 2i; {0,1} represents `i` itself. The curly braces 
  147.  are explicitly required here.
  148. ?expressions functions
  149. ?functions
  150.  The functions in GNUPLOT are the same as the corresponding functions
  151.  in the Unix math library, except that all functions accept integer,
  152.  real, and complex arguments, unless otherwise noted. The `sgn`
  153.  function is also supported, as in BASIC.
  154. ?expressions functions abs
  155. ?functions abs
  156. ?abs
  157.  The `abs` function returns the absolute value of its argument. The
  158.  returned value is of the same type as the argument.
  159.  
  160.  For complex arguments, abs(x) is defined as the length of x in the
  161.  complex plane [i.e.,  sqrt(real(x)**2 + imag(x)**2) ].
  162. ?expressions functions acos
  163. ?functions acos
  164. ?acos
  165.  The `acos` function returns the arc cosine (inverse cosine) of its
  166.  argument. `acos` returns its argument in radians.
  167. ?expressions functions arg
  168. ?functions arg
  169. ?arg
  170.  The `arg` function returns the phase of a complex number, in radians.
  171. ?expressions functions asin
  172. ?functions asin
  173. ?asin
  174.  The `asin` function returns the arc sin (inverse sin) of its argument.
  175.  `asin` returns its argument in radians.
  176. ?expressions functions atan
  177. ?functions atan
  178. ?atan
  179.  The `atan` function returns the arc tangent (inverse tangent) of its
  180.  argument. `atan` returns its argument in radians.
  181. ?expressions functions besj0
  182. ?functions besj0
  183. ?besj0
  184.  The `besj0` function returns the j0th Bessel function of its argument.
  185.  `besj0` expects its argument to be in radians.
  186. ?expressions functions besj1
  187. ?functions besj1
  188. ?besj1
  189.  The `besj1` function returns the j1st Bessel function of its argument.
  190.  `besj1` expects its argument to be in radians.
  191. ?expressions functions besy0
  192. ?functions besy0
  193. ?besy0
  194.  The `besy0` function returns the y0th Bessel function of its argument.
  195.  `besy0` expects its argument to be in radians.
  196. ?expressions functions besy1
  197. ?functions besy1
  198. ?besy1
  199.  The `besy1` function returns the y1st Bessel function of its argument.
  200.  `besy1` expects its argument to be in radians.
  201. ?expressions functions ceil
  202. ?functions ceil
  203. ?ceil
  204.  The `ceil` function returns the smallest integer that is not less than its
  205.  argument. For complex numbers, `ceil` returns the smallest integer
  206.  not less than the real part of its argument.
  207. ?expressions functions cos
  208. ?functions cos
  209. ?cos
  210.  The `cos` function returns the cosine of its argument. `cos` expects its
  211.  argument to be in radians.
  212. ?expressions functions cosh
  213. ?functions cosh
  214. ?cosh
  215.  The `cosh` function returns the hyperbolic cosine of its argument.
  216.  `cosh` expects its argument to be in radians.
  217. ?expressions functions exp
  218. ?functions exp
  219. ?exp
  220.  The `exp` function returns the exponential function of its argument
  221.  (`e` raised to the power of its argument).
  222. ?expressions functions floor
  223. ?functions floor
  224. ?floor
  225.  The `floor` function returns the largest integer not greater than its
  226.  argument. For complex numbers, `floor` returns the largest
  227.  integer not greater than the real part of its argument.
  228. ?expressions functions gamma
  229. ?functions gamma
  230. ?gamma
  231.  The `gamma` function returns the gamma function of the real part of
  232.  its argument. For integer n, gamma(n+1) = n! .
  233.  If the argument is a complex value, the imaginary component is ignored.
  234. ?expressions functions imag
  235. ?functions imag
  236. ?imag
  237.  The `imag` function returns the imaginary part of its argument as a
  238.  real number.
  239. ?expressions functions int
  240. ?functions int
  241. ?int
  242.  The `int` function returns the integer part of its argument, truncated
  243.  toward zero.
  244. ?expressions functions log
  245. ?functions log
  246. ?log
  247.  The `log` function returns the natural logarithm (base `e`) of its
  248.  argument.
  249. ?expressions functions log10
  250. ?functions log10
  251. ?log10
  252.  The `log10` function returns the logarithm (base 10) of its argument.
  253. ?expressions functions real
  254. ?functions real
  255. ?real
  256.  The `real` function returns the real part of its argument.
  257. ?expressions functions sgn
  258. ?functions sgn
  259. ?sgn
  260.  The `sgn` function returns 1 if its argument is positive, -1 if its
  261.  argument is negative, and 0 if its argument is 0. If the argument
  262.  is a complex value, the imaginary component is ignored.
  263. ?expressions functions sin
  264. ?functions sin
  265. ?sin
  266.  The `sin` function returns the sine of its argument. `sin` expects its
  267.  argument to be in radians.
  268. ?expressions functions sinh
  269. ?functions sinh
  270. ?sinh
  271.  The `sinh` function returns the hyperbolic sine of its argument. `sinh`
  272.  expects its argument to be in radians.
  273. ?expressions functions sqrt
  274. ?functions sqrt
  275. ?sqrt
  276.  The `sqrt` function returns the square root of its argument.
  277. ?expressions functions tan
  278. ?functions tan
  279. ?tan
  280.  The `tan` function returns the tangent of its argument. `tan` expects
  281.  its argument to be in radians.
  282. ?expressions functions tanh
  283. ?functions tanh
  284. ?tanh
  285.  The `tanh` function returns the hyperbolic tangent of its argument.
  286.  `tanh` expects its argument to be in radians.
  287. ?expressions operators
  288. ?operators
  289.  The operators in GNUPLOT are the same as the corresponding operators
  290.  in the C programming language, except that all operators accept
  291.  integer, real, and complex arguments, unless otherwise noted.
  292.  The ** operator (exponentiation) is supported, as in FORTRAN.
  293.  
  294.  Parentheses may be used to change order of evaluation.
  295. ?expressions operators binary
  296. ?operators binary
  297. ?binary
  298.  The following is a list of all the binary operators and their
  299.  usages:
  300.  
  301.   Symbol      Example      Explanation
  302.    **          a**b          exponentiation
  303.    *           a*b           multiplication
  304.    /           a/b           division
  305.    %           a%b         * modulo
  306.    +           a+b           addition
  307.    -           a-b           subtraction
  308.    ==          a==b          equality
  309.    !=          a!=b          inequality
  310.    &           a&b         * bitwise AND
  311.    ^           a^b         * bitwise exclusive OR
  312.    |           a|b         * bitwise inclusive OR
  313.    &&          a&&b        * logical AND
  314.    ||          a||b        * logical OR
  315.    ?:          a?b:c       * ternary operation
  316.  
  317.  (*) Starred explanations indicate that the operator requires
  318.  integer arguments.
  319.  
  320.  Logical AND (&&) and OR (||) short-circuit the way they do in C.
  321.  That is, the second && operand is not evaluated if the first is
  322.  false; the second || operand is not evaluated if the first is true.
  323.  
  324.  The ternary operator evaluates its first argument (a). If it is
  325.  true (non-zero) the second argument (b) is evaluated and returned,
  326.  otherwise the third argument (c) is evaluated and returned.
  327. ?expressions operators unary
  328. ?operators unary
  329. ?unary
  330.  The following is a list of all the unary operators and their
  331.  usages:
  332.  
  333.   Symbol     Example      Explanation
  334.    -           -a          unary minus
  335.    ~           ~a        * one's complement
  336.    !           !a        * logical negation
  337.    !           a!        * factorial
  338.  
  339.  (*) Starred explanations indicate that the operator requires an
  340.  integer argument.
  341.  
  342.  The factorial operator returns a real number to allow a greater range.
  343. ?help
  344.  The `help` command displays on-line help. To specify information on a
  345.  particular topic use the syntax:
  346.  
  347.          help {<topic>}
  348.  
  349.  If <topic> is not specified, a short message is printed about
  350.  GNUPLOT. After help for the requested topic is given, help for a
  351.  subtopic may be requested by typing its name, extending the help
  352.  request. After that subtopic has been printed, the request may be
  353.  extended again, or simply pressing return goes back one level to the
  354.  previous topic. Eventually, the GNUPLOT command line will return.
  355. ?load
  356.  The `load` command executes each line of the specified input file as
  357.  if it had been typed in interactively. Files created by the `save`
  358.  command can later be `load`ed. Any text file containing valid
  359.  commands can be created and then executed by the `load` command.
  360.  Files being `load`ed may themselves contain `load` commands. See
  361.  `comment` for information about comments in commands.
  362.  
  363.  The `load` command must be the last command on the line.
  364.  
  365.  Syntax:
  366.          load "<input-file>"
  367.  
  368.  The name of the input file must be enclosed in quotes.
  369.  
  370.  Examples:
  371.  
  372.          load 'work.gnu'
  373.          load "func.dat"
  374.  
  375.  The `load` command is performed implicitly on any file names given as
  376.  arguments to GNUPLOT. These are loaded in the order specified, and
  377.  then GNUPLOT exits.
  378. ?pause
  379.  The `pause` command displays any text associated with the command and
  380.  then waits a specified amount of time or until the carriage return is
  381.  pressed.  `pause` is especially useful in conjunction with `load` files.
  382.  
  383.  Syntax:
  384.          pause <time> {"<string>"}
  385.  
  386.  <time> may be any integer constant or expression. Choosing -1 will
  387.  wait until a carriage return is hit, zero (0) won't pause at all, and
  388.  a positive integer will wait the specified number of seconds.
  389.  
  390.  Note: Since `pause` is not part of the plot it may interact with
  391.  different device drivers differently (depending upon how text and
  392.  graphics are mixed).
  393.  
  394.  Examples:
  395.          pause -1    # Wait until a carriage return is hit
  396.          pause 3     # Wait three seconds
  397.          pause -1  "Hit return to continue"
  398.          pause 10  "Isn't this pretty?  It's a cubic-spline."
  399.  
  400. ?plot
  401. ?splot
  402.  `plot` and `splot` are the primary commands of the program. They plot
  403.  functions and data in many, many ways. `plot` is used to plot 2-d
  404.  functions and data, while `splot` plots 3-d surfaces and data.
  405.  
  406.  Syntax:
  407.  
  408.          plot {ranges}  <function> {title} {style}
  409.                      {, <function> {title} {style}...}
  410.  
  411.          splot {ranges}  <function> {title} {style}
  412.                       {, <function> {title} {style}...}
  413.  
  414.  where <function> is either a mathematical expression, the name of a
  415.  data file enclosed in quotes, or a pair (`plot`) or triple (`splot`)
  416.  of mathematical expressions in the case of parametric functions.
  417.  User-defined functions and variables may also be defined here.
  418.  
  419.  `plot` and `splot` commands can be as simple as
  420.  
  421.          plot sin(x)
  422.  
  423.  and
  424.  
  425.          splot x * y
  426.  
  427.  or as complex as (!)
  428.  
  429.          plot [t=1:10] [-pi:pi*2] tan(t),"data.1" with lines,t**2 with points
  430. ?plot datafile
  431. ?plot data-file
  432. ?splot datafile
  433. ?splot data-file
  434. ?datafile
  435. ?data-file
  436. ?data
  437.  Discrete data contained in a file can displayed by specifying the
  438.  name of the data file (enclosed in quotes) on the `plot` or `splot`
  439.  command line. Data files should contain one data point per line.
  440.  Lines beginning with # (or ! on VMS) will be treated as comments
  441.  and ignored. For `plot`s, each data point represents an (x,y)
  442.  pair. For `splot`s, each point is an (x,y,z) triple. For `plot`s with
  443.  error bars (see `plot errorbars`), each data point is either
  444.  (x,y,ydelta) or (x,y,ylow,yhigh). In all cases, the numbers on each
  445.  line of a data file must be separated by blank space. This blank
  446.  space divides each line into columns.
  447.  
  448.  For `plot`s the x value may be omitted, and for `splot`s the x
  449.  and y values may be omitted. In either case the omitted values are
  450.  assigned the current coordinate number. Coordinate numbers start at 0
  451.  and are incremented for each data point read.
  452.  
  453.  To specify other formats, see `plot datafile using`.
  454.  
  455.  In the `plot` command, blank lines in the data file cause a break in
  456.  the plot. There will be no line drawn between the preceding and
  457.  following points if the plot style is `lines` or `linespoints` (see
  458.  `plot style`). This does not change the plot style, as would plotting
  459.  the data as separate curves.
  460.  
  461.  This example compares the data in the file population.dat to a
  462.  theoretical curve:
  463.  
  464.          pop(x) = 103*exp((1965-x)/10)
  465.          plot [1960:1990] 'population.dat', pop(x)
  466.  
  467.  The file population.dat might contain:
  468.  
  469.          # Gnu population in Antarctica since 1965
  470.          1965   103
  471.          1970   55
  472.          1975   34
  473.          1980   24
  474.          1985   10
  475.  
  476.  When a data file is plotted, `samples` and `iso_samples` are ignored.
  477.  Curves plotted using the `plot` command are automatically extended to
  478.  hold the entire curve. Similarly grid data plotted using the `splot`
  479.  command is automatically extended, using the assumption that isolines
  480.  are separated by blank lines (a line with only a CR/LF in it).
  481.  
  482.  Implicitly, there are two types of 3-d datafiles. If all the isolines
  483.  are of the same length, the data is assumed to be a grid data, i.e.,
  484.  the data has a grid topology. Cross isolines in the other parametric
  485.  direction (the ith cross isoline passes thru the ith point of all the
  486.  provided isolines) will also be drawn for grid data. (Note contouring
  487.  is available for grid data only.) If all the isolines are not of the
  488.  same length, no cross isolines will be drawn and contouring that data
  489.  is impossible.
  490.  
  491.  For splot if 3-d datafile and using format (see `splot datafile using`)
  492.  specify only z (height field), a non parametric mode must be specified.
  493.  If, on the other hand, x, y, and z are all specified, a parametric
  494.  mode should be selected (see `set parametric`) since data is defining a
  495.  parametric surface.
  496.  
  497.  A simple example of plotting a 3-d data file is
  498.  
  499.          splot 'glass.dat'
  500.  
  501.  For more information about 3-d plotting, see `splot`.
  502. ?plot datafile using
  503. ?plot data-file using
  504. ?splot datafile using
  505. ?splot data-file using
  506. ?using
  507.  The format of data within a file can be selected with the `using` 
  508.  option. An explicit scanf string can be used, or simpler column
  509.  choices can be made.
  510.  
  511.  Syntax:
  512.  
  513.          plot "datafile" { using { <ycol> |
  514.                                    <xcol>:<ycol> |
  515.                                    <xcol>:<ycol>:<ydelta> |
  516.                                    <xcol>:<ycol>:<ylow>:<yhigh> }
  517.                                  {"<scanf string>"} } ...
  518.  
  519.  and
  520.  
  521.          splot "datafile" { using { <xcol>:<ycol>:<zcol> | <zcol> }
  522.                                   {"<scanf string>"} } ...
  523.  
  524.  <xcol>, <ycol>, and <zcol> explicitly select the columns to plot from
  525.  a space or tab separated multicolumn data file. If only <ycol> is
  526.  selected for `plot`, <xcol> defaults to 1. If only <zcol> is selected
  527.  for `splot`, then only that column is read from the file. An <xcol> of
  528.  0 forces <ycol> to be plotted versus its coordinate number. <xcol>,
  529.  <ycol>, and <zcol> can be entered as constants or expressions.
  530.  
  531.  If errorbars (see also `plot errorbars`) are used for `plot`s,
  532.  ydelta (for example, a +/- error) should be provided as the third
  533.  column, or ylow and yhigh as third and fourth columns.  These columns
  534.  must follow the x and y columns.
  535.  
  536.  Scanf strings override any <xcol>:<ycol>(:<zcol>) choices, except for
  537.  ordering of input, e.g.,
  538.          plot "datafile" using 2:1 "%f%*f%f"
  539.  causes the first column to be y and the third column to be x.
  540.  
  541.  If the scanf string is omitted, the default is generated based on the
  542.  <xcol>:<ycol>(:<zcol>) choices. If the `using` option is omitted, "%f%f"
  543.  is used for `plot` ("%f%f%f%f" for `errorbar` `plot`s) and "%f%f%f" is
  544.  used for `splot`.
  545.  
  546.  Examples:
  547.  
  548.          plot "MyData" using "%*f%f%*20[^\n]%f" with lines
  549.  
  550.  Data are read from the file "MyData" using the format
  551.  "%*f%f%*20[^\n]%f". The meaning of this format is: "%*f" ignore the
  552.  first number, "%f" then read in the second and assign to x,
  553.  "%*20[^\n]" then ignore 20 non-newline characters, "%f" then read in
  554.  the y value.
  555.  
  556.          n=3;
  557.          plot "MyData", "MyData" using n 
  558.  
  559.  causes GNUPLOT to plot the second and third columns of MyData versus
  560.  the first column. The command 'n=4; replot' would then plot the second
  561.  and fourth columns of MyData versus the first column.
  562.  
  563.          splot "glass.dat" using 1
  564.  
  565.  causes GNUPLOT to plot the first coordinate of the points of glass.dat
  566.  as the z coordinate while ignoring the other two coordinates.
  567.  
  568.  Note: GNUPLOT first reads a line of the data file into a buffer and 
  569.  then does a 
  570.          sscanf(input_buffer, scanf_string, &x, &y{, &z});
  571.  where 'x', 'y', and 'z' are of type 'float'. Any scanf string that
  572.  specifies two (three for `splot`, three or four for `errorbars`) float
  573.  numbers may be used.
  574. ?plot errorbars
  575. ?errorbars
  576.  Error bars are supported for 2-d data file plots by reading one or
  577.  two additional columns specifying ydelta or ylow and yhigh
  578.  respectively. No support exists for x error bars or any error bars
  579.  for `splot`s.
  580.  
  581.  In the default situation, GNUPLOT expects to see three or four
  582.  numbers on each line of the data file, either (x, y, ydelta) or 
  583.  (x, y, ylow, yhigh). The x coordinate must be specified. The order
  584.  of the numbers must be exactly as given above. Data files in this
  585.  format can easily be plotted with error bars:
  586.  
  587.          plot "data.dat" with errorbars
  588.  
  589.  The error bar is a vertical line plotted from (x, ylow) to (x,
  590.  yhigh). If ydelta is specified instead of ylow and yhigh, 
  591.  ylow=y-ydelta and yhigh=y+ydelta are derived. If there
  592.  are only two numbers on the line, yhigh and ylow are both set to
  593.  y. To get lines plotted between the data points, `plot` the
  594.  data file twice, once with errorbars and once with lines.
  595.  
  596.  If y autoscaling is on, the y range will be adjusted to fit the
  597.  error bars.
  598.  
  599.  The `using` option may be used to specify how columns of the data file
  600.  are to be assigned to x, y, ydelta, ylow, and yhigh. The x column must
  601.  be provided and both the x and y columns must appear before the
  602.  errorbar columns. If three column numbers are given, they are x, y,
  603.  and ydelta. If four columns are given, they are x, y, ylow, and
  604.  yhigh.
  605.  
  606.  Examples:
  607.  
  608.          plot "data.dat" using 1:2:3:4 with errorbars
  609.          plot "data.dat" using 3:2:6 with errorbars
  610.          plot "data.dat" using 3:4:8:7 with errorbars
  611.  
  612.  The first example reads, x, y, ylow, and yhigh, from columns 1, 2, 3,
  613.  and 4. This is equivalent to the default.  The second example reads x
  614.  from the third column, y from second and ydelta from the sixth column.
  615.  The third example reads x from the third column, y from the fourth,
  616.  ylow from the eighth, and yhigh from seventh columns.
  617.  
  618.  See also `plot using` and `plot style`.
  619. ?plot parametric
  620. ?splot parametric
  621. ?parametric
  622.  When in parametric mode (`set parametric`) mathematical expressions must
  623.  be given in pairs for `plot` and in triplets for `splot`:
  624.          plot sin(t),t**2
  625.  or
  626.          splot cos(u)*cos(v),cos(u)*sin(v),sin(u)
  627.  
  628.  Data files are plotted as before, except any preceding parametric
  629.  function must be fully specified before a data file is given as a
  630.  plot. In other words, the x parametric function (sin(t) above) and
  631.  the y parametric function (t**2 above) must not be interrupted with
  632.  any modifiers or data functions; doing so will generate a syntax error
  633.  stating that the parametric function is not fully specified.
  634.  
  635.  Ranges take on a different meaning when in parametric mode. The first
  636.  range on the `plot` command is the `trange`, the next is the `xrange`,
  637.  and the last is the `yrange`. For `splot` the order is `urange`,
  638.  `vrange`, `xrange`, `yrange`, and finally `zrange`. The following
  639.  `plot` command shows setting the `trange` to [-pi:pi], the `xrange` to
  640.  [-1.3:1.3] and the `yrange` to [-1:1] for the duration of the plot:
  641.          plot [-pi:pi] [-1.3:1.3] [-1:1] sin(t),t**2
  642.  
  643.  Other modifiers, such as `with` and `title`, may be specified only
  644.  after the parametric function has been completed:
  645.          plot sin(t),t**2 title 'Parametric example' with linespoints
  646. ?splot ranges
  647. ?plot ranges
  648. ?ranges
  649.  The optional range specifies the region of the plot that will be
  650.  displayed.
  651.  
  652.  Ranges may be provided on the `plot` and `splot` command line and
  653.  affect only that plot, or in the `set xrange`, `set yrange`, etc.,
  654.  commands, to change the default ranges for future plots.
  655.  
  656.  Syntax:
  657.          [{<dummy-var> =} {<xmin> : <xmax>}] { [{<ymin> : <ymax>}] }
  658.  
  659.  where <dummy-var> is the independent variable (the defaults are x and
  660.  y, but this may be changed with `set dummy`) and the min and max
  661.  terms can be constant expressions.
  662.  
  663.  Both the min and max terms are optional. The ':' is also optional
  664.  if neither a min nor a max term is specified. This allows '[ ]' to
  665.  be used as a null range specification.
  666.  
  667.  Specifying a range in the `plot` command line turns autoscaling for
  668.  that axis off for that plot. Using one of the `set` range commands
  669.  turns autoscaling off for that axis for future plots, unless changed
  670.  later. (See `set autoscale`).
  671.  
  672.  Examples:
  673.  
  674.  This uses the current ranges:
  675.          plot cos(x)
  676.  
  677.  This sets the x range only:
  678.          plot [-10:30] sin(pi*x)/(pi*x)
  679.  
  680.  This is the same, but uses t as the dummy-variable:
  681.          plot [t = -10 :30]  sin(pi*t)/(pi*t)
  682.  
  683.  This sets both the x and y ranges:
  684.          plot [-pi:pi] [-3:3]  tan(x), 1/x
  685.  
  686.  This sets only the y range, and turns off autoscaling on both axes:
  687.          plot [ ] [-2:sin(5)*-8] sin(x)**besj0(x)
  688.  
  689.  This sets xmax and ymin only:
  690.          plot [:200] [-pi:]  exp(sin(x))
  691.  
  692.  This sets the x, y, and z ranges:
  693.          splot [0:3] [1:4] [-1:1] x*y
  694. ?plot style
  695. ?splot style
  696. ?style
  697. ?plot with
  698. ?with
  699.  Plots may be displayed in one of six styles: `lines`, `points`,
  700.  `linespoints`, `impulses`, `dots`, or `errorbars`. The `lines` style
  701.  connects adjacent points with lines. The `points` style displays a
  702.  small symbol at each point. The `linespoints` style does both
  703.  `lines` and `points`. The `impulses` style displays a vertical line
  704.  from the x axis (or from the grid base for `splot`) to each point. The
  705.  `dots` style plots a tiny dot at each point; this is useful for
  706.  scatter plots with many points.
  707.  
  708.  The `errorbars` style is only relevant to 2-d data file plotting. It
  709.  is treated like `points` for `splot`s and function `plot`s. For data
  710.  `plot`s, `errorbars` is like `points`, except that a vertical error 
  711.  bar is also drawn: for each point (x,y), a line is drawn from
  712.  (x,ylow) to (x,yhigh). A tic mark is placed at the ends of the error
  713.  bar. The ylow and yhigh values are read from the data file's columns,
  714.  as specified with the `using` option to plot. See `plot errorbars` for
  715.  more information.
  716.  
  717.  Default styles are chosen with the `set function style` and
  718.  `set data style` commands.
  719.  
  720.  By default, each function and data file will use a different 
  721.  line type and point type, up to the maximum number of available 
  722.  types. All terminal drivers support at least six different point
  723.  types, and re-use them, in order, if more than six are required.
  724.  The LaTeX driver supplies an additional six point types (all variants
  725.  of a circle), and thus will only repeat after twelve curves are
  726.  plotted with points.
  727.  
  728.  If desired, the style and (optionally) the line type and point type
  729.  used for a curve can be specified.
  730.  
  731.  Syntax:
  732.  
  733.          with <style> {<linetype> {<pointtype>}}
  734.  
  735.  where <style> is either `lines`, `points`, `linespoints`, `impulses`,
  736.  `dots`, or `errorbars`. The <linetype> and <pointtype> are positive
  737.  integer constants or expressions and specify the line type and point
  738.  type to be used for the plot. Line type 1 is the first line type used
  739.  by default, line type 2 is the second line type used by default, etc.
  740.  
  741.  Examples:
  742.  
  743.  This plots sin(x) with impulses:
  744.          plot sin(x) with impulses
  745.  
  746.  This plots x*y with points, x**2 + y**2 default:
  747.          splot x*y w points, x**2 + y**2
  748.  
  749.  This plots tan(x) with the default function style, "data.1" with lines:
  750.          plot [ ] [-2:5] tan(x), "data.1" with l
  751.  
  752.  This plots "leastsq.dat" with impulses:
  753.          plot 'leastsq.dat' w i
  754.  
  755.  This plots "exper.dat" with errorbars and lines connecting the points:
  756.          plot 'exper.dat' w lines, 'exper.dat' w errorbars
  757.  Here 'exper.dat' should have three or four data columns.
  758.  
  759.  This plots x**2 + y**2 and x**2 - y**2 with the same line type:
  760.          splot x**2 + y**2 with line 1, x**2 - y**2 with line 1
  761.  
  762.  This plots sin(x) and cos(x) with linespoints, using the
  763.  same line type but different point types:
  764.          plot sin(x) with linesp 1 3, cos(x) with linesp 1 4
  765.  
  766.  This plots file "data" with points style 3:
  767.          plot "data" with points 1 3 
  768.  Note that the line style must be specified when specifying the point
  769.  style, even when it is irrelevant. Here the line style is 1 and the
  770.  point style is 3, and the line style is irrelevant.
  771.  
  772.  See `set style` to change the default styles.
  773. ?plot title
  774. ?splot title
  775.  A title of each plot appears in the key. By default the title is
  776.  the function or file name as it appears on the plot command line.
  777.  The title can be changed by using the `title` option. This option 
  778.  should precede any `with` option.
  779.  
  780.  Syntax:
  781.          title "<title>"
  782.  
  783.  where <title> is the new title of the plot and must be enclosed in
  784.  quotes. The quotes will not be shown in the key.
  785.  
  786.  Examples:
  787.  
  788.  This plots y=x with the title 'x':
  789.          plot x
  790.  
  791.  This plots the "glass.dat" file with the title 'surface of revolution':
  792.          splot "glass.dat" title 'surface of revolution'
  793.  
  794.  This plots x squared with title "x^2" and "data.1" with title
  795.  'measured data':
  796.          plot x**2 title "x^2", "data.1" t 'measured data'
  797. ?print
  798.  The `print` command prints the value of <expression> to the screen.
  799.  
  800.  Syntax:
  801.          print <expression>
  802.  
  803.  See `expressions`.
  804. ?pwd
  805.  The `pwd` command prints the name of the working directory to the screen.
  806.  
  807.  Syntax:
  808.          pwd
  809. ?quit
  810.  The `exit` and `quit` commands and END-OF-FILE character will exit
  811.  GNUPLOT. All these commands will clear the output device (as the
  812.  `clear` command does) before exiting.
  813. ?replot
  814.  The `replot` command without arguments repeats the last `plot` or `splot`
  815.  command. This can be useful for viewing a plot with different `set`
  816.  options, or when generating the same plot for several devices.
  817.  
  818.  Arguments specified after a `replot` command will be added onto the last
  819.  `plot` (`splot`) command (with an implied ',' separator) before it is
  820.  repeated. `replot` accepts the same arguments as the `plot` (`splot`)
  821.  commands except that ranges cannot be specified. See `command-line
  822.  editing` for ways to edit the last `plot` (`splot`) command.
  823. ?save
  824.  The `save` command saves user-defined functions, variables, set
  825.  options or all three plus the last `plot` (`splot`) command to the
  826.  specified file.
  827.  
  828.  Syntax:
  829.          save  {<option>} "<filename>"
  830.  
  831.  where <option> is `functions`, `variables` or `set`. If no option is
  832.  used, GNUPLOT saves functions, variables, set options and the last `plot`
  833.  (`splot`) command.
  834.  
  835.  `save`d files are written in text format and may be read by the `load`
  836.  command.
  837.  
  838.  The filename must be enclosed in quotes.
  839.  
  840.  Examples:
  841.  
  842.          save "work.gnu"
  843.          save functions 'func.dat'
  844.          save var 'var.dat'
  845.          save set "options.dat"
  846. ?set
  847. ?show
  848.  The `set` command sets LOTS of options.
  849.  
  850.  The `show` command shows their settings. `show all` shows all the
  851.  settings.
  852. ?set angles
  853. ?show angles
  854. ?angles
  855.  By default, GNUPLOT assumes the independent variable in polar plots
  856.  is in units of radians. If `set angles degrees` is specified before
  857.  `set polar` then the default range is [0:360] and the independent
  858.  variable has units of degrees. This is particularly useful for
  859.  plots of data files. The angle setting also hold for the 3-d
  860.  mapping as set via the `set mapping` command.
  861.  
  862.  Syntax:
  863.          set angles { degrees | radians }
  864.          show angles
  865. ?set arrow
  866. ?set noarrow
  867. ?show arrow
  868. ?arrow
  869. ?noarrow
  870.  Arbitrary arrows can be placed on a plot using the `set arrow`
  871.  command.
  872.  
  873.  Syntax:
  874.  
  875.           set arrow {<tag>} {from <sx>,<sy>{,<sz>}} 
  876.                             {to <ex>,<ey>{,<ez>}} {{no}head}
  877.           set noarrow {<tag>}
  878.           show arrow
  879.  
  880.  
  881.  Unspecified coordinates default to 0. The x, y, and z values are in
  882.  the graph's coordinate system. The z coordinate is only used in
  883.  `splot` commands. <tag> is an integer that identifies the arrow. If no
  884.  tag is given, the lowest unused tag value is assigned automatically.
  885.  The tag can be used to delete or change a specific arrow. To change
  886.  any attribute of an existing arrow, use the `set arrow` command with
  887.  the appropriate tag, and specify the parts of the arrow to be
  888.  changed. Specifying nohead requests the arrow be drawn without a head
  889.  (yielding a line segment). By default, arrows have heads.
  890.  
  891.  Arrows outside the plotted boundaries are permitted but may cause
  892.  device errors.
  893.  
  894.  Examples:
  895.  
  896.  To set an arrow pointing from the origin to (1,2), use:
  897.           set arrow to 1,2
  898.  To set an arrow from (-10,4,2) to (-5,5,3), and tag the arrow number
  899.  3, use:
  900.           set arrow 3 from -10,4,2 to -5,5,3
  901.  To change the preceding arrow begin at 1,1,1, without an arrow head,
  902.  use:
  903.           set arrow 3 from 1,1,1 nohead
  904.  To delete arrow number 2 use:
  905.           set noarrow 2
  906.  To delete all arrows use:
  907.           set noarrow
  908.  To show all arrows (in tag order) use:
  909.           show arrow
  910. ?set autoscale
  911. ?set noautoscale
  912. ?show autoscale
  913. ?autoscale
  914. ?noautoscale
  915.  Auto scaling may be set individually on the x, y or z axis
  916.  or globally on all axes. The default is to autoscale all axes.
  917.  
  918.  When autoscaling, the plot range is automatically computed and the
  919.  dependent axis (y for a `plot` and z for `splot`) is scaled to
  920.  include the range of the function or data being plotted.
  921.  
  922.  If autoscaling of the dependent axis (y or z) is not set, the
  923.  current y or z range is used.
  924.  
  925.  See `set yrange` or `set zrange`.
  926.  
  927.  Autoscaling the independent variables (x for `plot` and x,y for
  928.  `splot`) is a request to set the domain to match any data file being
  929.  plotted. If there are no data files then autoscaling an independent
  930.  variable has no effect. In other words, in the absence of a data
  931.  file, functions alone do not affect the x range (or the y range if
  932.  plotting z = f(x,y)).
  933.  
  934.  See `set xrange`, or `set yrange`.
  935.  
  936.  The behavior of autoscaling remains consistent in parametric mode,
  937.  however, there are more dependent variables and hence more control
  938.  over x, y, and z plot scales. In parametric mode, the independent or
  939.  dummy variable is t for `plot`s and u,v for `splot`s.  Autoscale in
  940.  parametric mode, then, controls all ranges (t, u, v, x, y, and z) and
  941.  allows x, y, and z to be fully autoscaled.
  942.  
  943.  See `set parametric`.
  944.  
  945.  Syntax:
  946.          set autoscale <axes>
  947.          set noautoscale <axes>
  948.          show autoscale
  949.  
  950.  where <axes> is either `x`, `y`, `z` or `xy`. If <axes> is not given
  951.  then all axes are assumed.
  952.  
  953.  Examples:
  954.  
  955.  This sets autoscaling of the y axis. x axis autoscaling is not
  956.  affected.
  957.          set autoscale y
  958.  
  959.  This sets autoscaling of the x and y axes.
  960.          set autoscale xy
  961.  
  962.  This sets autoscaling of the x, y and z axes.
  963.          set autoscale
  964.  
  965.  This disables autoscaling of the x, y and z axes.
  966.          set noautoscale
  967.  
  968.  This disables autoscaling of the z axis only.
  969.          set noautoscale z
  970. ?autoscale parametric
  971. ?set autoscale t
  972.  When in parametric mode (`set parametric`) the xrange is as
  973.  fully scalable as the yrange. In other words, in parametric
  974.  mode the x axis can be automatically scaled to fit the range
  975.  of the parametric function that is being plotted. Of course,
  976.  the y axis can also be automatically scaled just as in the
  977.  non-parametric case. If autoscaling on the x axis is not set,
  978.  the current x range is used.
  979.  
  980.  When there is a mix of data files and functions, the xrange of
  981.  the functions is selected as that of the data files if autoscale
  982.  is true for x. While this keeps the behavior compatible with
  983.  non-parametric plotting, it may not be retained in the future.
  984.  The problem is that, in parametric mode, the x and y ranges are
  985.  not as distinguishable as in the non-parametric mode and this
  986.  behavior may not be the most useful.
  987.  
  988.  For completeness a last command `set autoscale t` is accepted.
  989.  However, the effect of this "scaling" is very minor. When
  990.  GNUPLOT determines that the t range would be empty it makes a
  991.  small adjustment if autoscaling is true. Otherwise, GNUPLOT
  992.  gives an error. Such behavior may, in fact, not be very useful
  993.  and the command `set autoscale t` is certainly questionable.
  994.  
  995.  `splot` extends the above idea similarly. If autoscaling is set then
  996.  x, y, and z ranges are computed and each axis scaled to fit the
  997.  resulting data.
  998. ?set border
  999. ?set noborder
  1000. ?show border
  1001. ?border
  1002. ?noborder
  1003.  The `set border` and `set noborder` commands controls the display of
  1004.  the plot borders for the `plot` and `splot` commands.
  1005.  
  1006.  Syntax:
  1007.          set border
  1008.          set noborder
  1009.          show border
  1010. ?set clip
  1011. ?set noclip
  1012. ?show clip
  1013. ?clip
  1014. ?noclip
  1015.  GNUPLOT can clip data points and lines that are near the boundaries
  1016.  of a plot. 
  1017.  
  1018.  Syntax:
  1019.          set clip <clip-type>
  1020.          set noclip <clip-type>
  1021.          show clip
  1022.  
  1023.  Three clip types are supported by GNUPLOT: `points`, `one`, and `two`.
  1024.  One, two, or all three clip types may be active for a single plot.
  1025.  
  1026.  The `points` clip type forces GNUPLOT to clip (actually, not plot at
  1027.  all) data points that fall within but too close to the boundaries
  1028.  (this is so the large symbols used for points will not extend outside
  1029.  the boundary lines). Without clipping points near the boundaries may
  1030.  look bad; try adjusting the x and y ranges.
  1031.  
  1032.  Setting the `one` clip type causes GNUPLOT to plot the line segments
  1033.  which have only one of the two endpoints with the plotting region.
  1034.  Only the in-range portion of the line is drawn.  The alternative is to
  1035.  not draw any portion of the line segment.
  1036.  
  1037.  Some lines may have both endpoints out of range, but pass through the
  1038.  plotting area. Setting the `two` clip-type allows the visible portion
  1039.  of these lines to be drawn.
  1040.  
  1041.  In no case is a line drawn outside the plotting area.
  1042.  
  1043.  The defaults are `noclip points`, `clip one`, and `noclip two`.
  1044.  
  1045.  To check the state of all forms of clipping, use
  1046.          show clip
  1047.  
  1048.  For backward compatibility with older versions, the following forms
  1049.  are also permitted.
  1050.         set clip
  1051.         set noclip
  1052.  `set clip` is synonymous with `set clip points`. `set noclip` turns
  1053.  off all three types of clipping.
  1054. ?set cntrparam
  1055. ?show cntrparam
  1056. ?cntrparam
  1057.  Sets the different parameters for the contouring plot (see also `contour`).
  1058.  
  1059.  Syntax:
  1060.          set cntrparam { { linear | cubicspline | bspline } |
  1061.                          points <n> |
  1062.                          levels <n> |
  1063.                          order <n> }
  1064.  
  1065.  This command controls the way contours are plotted. <n> should be an
  1066.  integral constant expression. The parameters are:
  1067.  
  1068.  `linear`, `cubicspline`, `bspline` - Controls type of approximation or
  1069.  interpolation. If `linear`, then the contours are drawn piecewise
  1070.  linear, as extracted from the surface directly. If `cubicspline`, then
  1071.  piecewise linear contours are interpolated to form a somewhat smoother
  1072.  contours, but which may undulate. The third option is the uniform
  1073.  `bspline`, which only approximates the piecewise linear data but is
  1074.  guaranteed to be smoother.
  1075.  
  1076.  `points` - Eventually all drawings are done with piecewise linear
  1077.  strokes.  This number controls the number of points used to
  1078.  approximate a curve.  Relevant for `cubicspline` and `bspline` modes
  1079.  only.
  1080.  
  1081.  `levels` - Number of contour levels. If the surface is bounded by zmin
  1082.  and zmax then contours will be generated from zmin+dz to zmax-dz
  1083.  in steps of size dz, where dz = (zmax - zmin) / (levels + 1).
  1084.  
  1085.  `order`  - Order of the bspline approximation to be used. The bigger this
  1086.  order is, the smoother the resulting contour.  (Of course, higher order
  1087.  bspline curves will move further away from the original peicewise linear
  1088.  data.)  This option is relevant for `bspline` mode only. Allowed values are 
  1089.  integers in the range from 2 (linear) to 10.
  1090. ?set contour
  1091. ?show contour
  1092. ?contour
  1093.  Enable contour drawing for surfaces. This option is available for `splot`
  1094.  only.
  1095.  
  1096.  Syntax:
  1097.          set contour { base | surface | both }
  1098.          set nocontour
  1099.  
  1100.  If no option is provided to `set contour`, the default is `base`.
  1101.  The three options specify where to draw the contours: `base` draws
  1102.  the contours on the grid base where the x/ytics are placed, `surface`
  1103.  draws the contours on the surfaces themselves, and `both` draws the
  1104.  contours on both the base and the surface.
  1105.  
  1106.  See also `set cntrparam` for the parameters that affect the drawing of 
  1107.  contours.
  1108. ?set data style
  1109. ?show data style
  1110. ?data style
  1111.  The `set data style` command changes the default plotting style
  1112.  for data plots.
  1113.  
  1114.  Syntax:
  1115.          set data style 
  1116.          show data style 
  1117.          set data style <style-choice>
  1118.  
  1119.  In the first case, `set data style` returns the possible style
  1120.  choices:  `lines`, `points`, `linespoints`, `dots`, `impulses`, 
  1121.  or `errorbars`.  `show data style` shows the current default
  1122.  plotting style for data.  `set data style dots` would actually 
  1123.  change the default plotting style.  See also `plot`.
  1124. ?set dummy
  1125. ?show dummy
  1126. ?dummy
  1127.  By default, GNUPLOT assumes that the independent variable for the
  1128.  `plot` command is x, and the independent variables for the `splot`
  1129.  command are x and y. They are called the dummy variables because it
  1130.  is just a notation to indicate the independent variables. The `set
  1131.  dummy` command changes these default dummy variable names. For
  1132.  example, it may be more convenient to call the dummy variable t
  1133.  when plotting time functions:
  1134.  
  1135.          set dummy t
  1136.          plot sin(t), cos(t)
  1137.  
  1138.  Syntax:
  1139.          set dummy <dummy-var>{,<dummy-var>}
  1140.          show dummy
  1141.  
  1142.  Examples:
  1143.          set dummy u,v
  1144.          set dummy ,s
  1145.  
  1146.  to set both dummy variables to u and v or set only the second
  1147.  variable to s.
  1148.  
  1149.  The `set parametric` command also changes the dummy variables (to t
  1150.  for `plot` and u,v for `splot`s).
  1151.  
  1152. ?set format
  1153. ?show format
  1154. ?format
  1155.  The format of the tic-mark labels can be set with the `set format`
  1156.  command. The default format for both axes is "%g", but other formats
  1157.  such as "%.2f" or "%3.0fm" are often desirable. Anything accepted by
  1158.  printf when given a double precision number, and then accepted by the
  1159.  terminal, will work. In particular, the formats f, e, and g will work,
  1160.  and the d, o, x, c, s, and u formats will not work.
  1161.  
  1162.  Syntax:
  1163.          set format {<axes>} {"<format-string>"}
  1164.          show format
  1165.  
  1166.  where <axes> is either `x`, `y`, `z`, `xy`, or nothing (which is the
  1167.  same as `xy`). The length of the string representing a ticmark (after
  1168.  formatting with printf) is restricted to 100 characters.  If the
  1169.  format string is omitted, the format will be returned to the default
  1170.  "%g". For LaTeX users, the format "$%g$" is often desirable.  If the
  1171.  empty string "" is used, no label will be plotted with each tic,
  1172.  though the tic mark will still be plotted. To eliminate all tic marks,
  1173.  use `set noxtics` or `set noytics`.
  1174.  
  1175.  See also `set xtics` and `set ytics` for more control over tic labels.
  1176. ?set function style
  1177. ?show function style
  1178. ?function style
  1179.  The `set function style` command changes the default plotting style
  1180.  for functions.
  1181.  
  1182.  Syntax:
  1183.          set function style 
  1184.          show function style 
  1185.          set function style <style-choice>
  1186.  
  1187.  In the first case, `set function style` returns the possible style
  1188.  choices:  `lines`, `points`, `linespoints`, `dots`, `impulses`, 
  1189.  or `errorbars`.  `show function style` shows the current default
  1190.  plotting style for functions.  `set function style linespoints`
  1191.  would actually change the default plotting style.  See also `plot`.
  1192. ?show functions
  1193.  The `show functions` command lists all user-defined functions and
  1194.  their definitions.
  1195.  
  1196.  Syntax:
  1197.          show functions
  1198. ?set grid
  1199. ?show grid
  1200. ?grid
  1201.  The optional `set grid` draws a grid at the tic marks with the axis
  1202.  linetype.
  1203.  
  1204.  Syntax:
  1205.          set grid
  1206.          set nogrid
  1207.          show grid
  1208. ?set isosamples
  1209. ?show isosamples
  1210. ?isosamples
  1211.  An isoline is a curve parametrized by one of the surface parameters
  1212.  while the other surface parameter is fixed. Isolines are a simple
  1213.  means to display a surface. By fixing the u parameter of surface
  1214.  s(u,v), the iso-u lines of the form c(v) = s(u0,v) are produced, and
  1215.  by fixing the v parameter, the iso-v lines of the form c(u) = s(u,v0)
  1216.  are produced.
  1217.  
  1218.  The isoline density of surfaces may be changed by the `set isosamples`
  1219.  command. By default, sampling is set to 10 isolines per u or v axis.
  1220.  A higher sampling rate will produce more accurate plots, but will take
  1221.  longer. This parameter has no effect on data file plotting.
  1222.  
  1223.  Syntax:
  1224.          set isosamples <expression>
  1225.          show isosamples
  1226. ?set key
  1227. ?show key
  1228. ?key
  1229.  The `set key` enables a key describing curves on a plot.  By default
  1230.  the key is placed in the upper right corner of the plot.
  1231.  
  1232.  Syntax:
  1233.          set key
  1234.          set key <x>,<y>{,<z>}
  1235.          set nokey
  1236.          show key
  1237.  
  1238.  The coordinates <x>, <y> (and <z> for `splot`s) specify the location
  1239.  of the key on the plot. The key is drawn as a sequence of lines, with
  1240.  one plot described on each line. On the right hand side of each line
  1241.  is a representation that attempts to mimic the way the curve is
  1242.  plotted.  On the left side of each line is the text description,
  1243.  obtained from the `plot` command. See `plot title` to change this
  1244.  description. The lines are vertically arranged so an imaginary
  1245.  straight line divides the left- and right-hand sides of the key. It is
  1246.  the coordinates of this line that are specified with the `set key`
  1247.  command. In a `plot`, only the x and y coordinates are used to specify
  1248.  the line position.  For a `splot`, x, y and z are all being used as a
  1249.  3-d location mapped using the same mapping as the plot itself to form
  1250.  the required 2-d screen position of the imaginary line.
  1251.  
  1252.  Some or all of the key may be outside of the plot boundary, although
  1253.  this may interfere with other labels and may cause an error on some
  1254.  devices.
  1255.  
  1256.  Examples:
  1257.  
  1258.  This places the key at the default location:
  1259.          set key
  1260.  This disables the key:
  1261.          set nokey
  1262.  This places a key at coordinates 2,3.5,2
  1263.          set key 2,3.5,2
  1264. ?set label
  1265. ?set nolabel
  1266. ?show label
  1267. ?label
  1268. ?nolabel
  1269.  Arbitrary labels can be placed on the plot using the `set label`
  1270.  command.  If the z coordinate is given on a `plot` it is ignored; if
  1271.  it is missing on a `splot` it is assumed to be 0.
  1272.  
  1273.  Syntax:
  1274.  
  1275.           set label {<tag>} {"<label_text>"} {at <x>,<y>{,<z>}}
  1276.                             {<justification>}
  1277.           set nolabel {<tag>}
  1278.           show label
  1279.  
  1280.  
  1281.  The text defaults to "", and the position to 0,0,0.  The <x>, <y>, and
  1282.  <z> values are in the graph's coordinate system.  The tag is an
  1283.  integer that is used to identify the label. If no <tag> is given, the
  1284.  lowest unused tag value is assigned automatically. The tag can be used
  1285.  to delete or change a specific label. To change any attribute of an
  1286.  existing label, use the `set label` command with the appropriate tag,
  1287.  and specify the parts of the label to be changed.
  1288.  
  1289.  By default, the text is placed flush left against the point x,y,z.
  1290.  To adjust the way the label is positioned with respect to the point
  1291.  x,y,z, add the parameter <justification>, which may be `left`, `right`
  1292.  or `center`, indicating that the point is to be at the left, right or
  1293.  center of the text. Labels outside the plotted boundaries are
  1294.  permitted but may interfere with axes labels or other text.
  1295.  
  1296.  Examples:
  1297.  
  1298.  To set a label at (1,2) to "y=x" use:
  1299.           set label "y=x" at 1,2
  1300.  To set a label "y=x^2" with the right of the text at (2,3,4), and tag
  1301.  the label number 3, use:
  1302.           set label 3 "y=x^2" at 2,3,4 right
  1303.  To change the preceding label to center justification, use:
  1304.           set label 3 center
  1305.  To delete label number 2 use:
  1306.           set nolabel 2
  1307.  To delete all labels use:
  1308.           set nolabel
  1309.  To show all labels (in tag order) use:
  1310.           show label
  1311.  
  1312.  (The Latex, EEPIC, and Imagen drivers allow \\ in a string to specify
  1313.  a newline.)
  1314. ?set logscale
  1315. ?set nologscale
  1316. ?show logscale
  1317. ?logscale
  1318. ?nologscale
  1319.  Log scaling may be set on the x, y, and z axes.
  1320.  
  1321.  Syntax:
  1322.          set logscale <axes>
  1323.          set nologscale <axes>
  1324.          show logscale
  1325.  
  1326.  where <axes> may be any combinations of `x`, `y`, and `z`, in any
  1327.  order.  If <axes> is not given then all three axes are assumed.  The
  1328.  command `set logscale` turns on log scaling on the specified axes,
  1329.  while `set nologscale` turns off log scaling.
  1330.  
  1331.  Examples:
  1332.  
  1333.  To enable log scaling in both x and z axes:
  1334.         set logscale xz
  1335.  To disable z axis log scaling:
  1336.         set nologscale z
  1337. ?set mapping
  1338. ?show mapping
  1339. ?mapping
  1340.  
  1341.  Syntax:
  1342.          set mapping { cartesian | spherical | cylindrical }
  1343.  
  1344.  Data for `splot`s are usually in regular Euclidean space and are
  1345.  provided in Cartesian coordinates. Such 3-d data require three
  1346.  coordinates (x, y and z) or one coordinate (only z) in each line in
  1347.  the data file.  In order to be able to use spherical or cylindrical
  1348.  coordinate systems, use the `set mapping` command. In both cases two
  1349.  coordinates are expected in each line of the data. For a spherical
  1350.  coordinate system, these are theta and phi (in units as specified by
  1351.  `set angles`) and the mapping is:
  1352.  
  1353.          x = cos( theta ) * cos( phi )
  1354.          y = sin( theta ) * cos( phi )
  1355.          z = sin( phi )
  1356.  
  1357.  For a cylindrical coordinate system, the mapping uses two variables,
  1358.  theta (in units as specified by `set angles`) and z:
  1359.  
  1360.          x = cos( theta )
  1361.          y = sin( theta )
  1362.          z = z
  1363.  
  1364.  Again, note that mapping will affect data file `splot`s only.
  1365. ?set offsets
  1366. ?show offsets
  1367. ?offsets
  1368.  The amount of the graph that the plot takes up may be controlled to
  1369.  some extent with the `set offsets` command. This command takes four
  1370.  offset arguments: <left>, <right>, <top> and <bottom>. By default,
  1371.  each offset is 0. Each offset may be a constant or an expression. Left
  1372.  and right offsets are given in units of the x axis, while top and
  1373.  bottom offsets are given in units of the y axis. The plot of sin(x),
  1374.  displayed with offsets of 0, 0, 2, 2 will take up 1/3 of the
  1375.  displayed y axis. Offsets are particularly useful with polar
  1376.  coordinates as a means of compensating for aspect ratio distortion.
  1377.  Offsets are ignored in `splot`s.
  1378.  
  1379.  Syntax:
  1380.          set offsets <left>, <right>, <top>, <bottom>
  1381.          show offsets
  1382. ?set output
  1383. ?show output
  1384. ?output
  1385.  By default, plots are displayed to the standard output. The `set
  1386.  output` command redirects the display to the specified file or
  1387.  device.
  1388.  
  1389.  Syntax:
  1390.          set output {"<filename>"}
  1391.          show output
  1392.  
  1393.  The filename must be enclosed in quotes. If the filename is
  1394.  omitted, output will be sent to the standard output.
  1395. ?set parametric
  1396. ?set noparametric
  1397. ?show parametric
  1398. ?parametric
  1399. ?noparametric
  1400.  The `set parametric` command changes the meaning of `plot` (`splot`)
  1401.  from normal functions to parametric functions. The command
  1402.  `set noparametric` changes the plotting style back to normal,
  1403.  single-valued expression plotting.
  1404.  
  1405.  In 2-d plotting, a parametric function is determined by a pair
  1406.  of parametric functions operating on a parameter. An example
  1407.  of a 2-d parametric function would be plot sin(t),cos(t) (which
  1408.  defines a circle).
  1409.  
  1410.  For 3-d plotting, the surface is described as x=f(u,v), y=g(u,v),
  1411.  z=h(u,v). Therefore a triplet of functions are required. An example of
  1412.  3-d parametric function would be cos(u)*cos(v),cos(u)*sin(v),sin(u)
  1413.  (which defines a sphere). It takes three parametric function
  1414.  specifications in terms of the parametric dummy arguments to describe
  1415.  a single graph.
  1416.  
  1417.  The total set of possible plots is a superset of the simple f(x)
  1418.  style plots, since the two (three) functions can describe the
  1419.  x and y (and z) values to be computed separately. In fact,
  1420.  plots of the type t,f(t) (u,v,f(u,v)) are equivalent to those
  1421.  produced with f(x) when the x values are computed using the
  1422.  identity function as the first function.
  1423.  
  1424.  Note that the order the parametric functions are specified is
  1425.  xfunction, yfunction (and zfunction) and that each operates over the
  1426.  common parametric domain.
  1427.  
  1428.  Also, the `set parametric` function implies a new range of values.
  1429.  Whereas the normal f(x) and f(x,y) style plotting assume an xrange
  1430.  and yrange (and zrange), the parametric mode additionally specifies a
  1431.  trange, urange, and vrange. These ranges may be set
  1432.  directly with `set trange`, `set urange` and `set vrange`, or by
  1433.  specifying the range on the `plot` or `splot` commands. Currently
  1434.  the default range for these parametric variables is [-5:5].
  1435.  Setting the ranges to something more meaningful is expected.
  1436. ?set polar
  1437. ?set nopolar
  1438. ?show polar
  1439. ?polar
  1440. ?nopolar
  1441.  The `set polar` command changes the meaning of the plot from
  1442.  rectangular coordinates to polar coordinates. In polar coordinates,
  1443.  the dummy variable (x) is an angle. The range of this angle is changed
  1444.  from whatever it was to [0:2*pi], or, if degree unit has been selected,
  1445.  to [0:360] (see `set angles`).
  1446.  
  1447.  The command `set nopolar` changes the meaning of the plot back to the
  1448.  default rectangular coordinate system. The range of x is changed from
  1449.  whatever it was to [-10:10].
  1450.  
  1451.  The `set polar` command is not supported for `splot`s.  See the
  1452.  `set mapping` command for similar functionality for `splot`s.
  1453.  
  1454.  While in polar coordinates the meaning of an expression in x is really
  1455.  r = f(x), where x is an angle of rotation. The xrange controls the
  1456.  domain (the angle) of the function, and the yrange controls the range
  1457.  (the radius). The plot is plotted in a rectangular box, and the x and
  1458.  y axes are both in units of the radius. Thus, the yrange controls both
  1459.  dimensions of the plot output. The tics and units are written along
  1460.  the axes rather than at the left and bottom. These unit are offset by
  1461.  <rmin> specified by the `rrange` (See `set rrange`). It is not
  1462.  possible to specify different output dimensions in the x or y
  1463.  directions. The yrange can be used to shift the plot diagonally to
  1464.  display only the first or third quadrants.
  1465.  
  1466.  Syntax:
  1467.          set polar
  1468.          set nopolar
  1469.          show polar
  1470.  Example:
  1471.          set polar
  1472.          plot x*sin(x)
  1473.          plot [-2*pi:2*pi] [-3:3] x*sin(x)
  1474.  The first plot uses the default polar angular domain of 0 to 2*pi.
  1475.  The radius (and the size of the plot) is scaled automatically. The
  1476.  second plot expands the domain, and restricts the range of the radius
  1477.  (and the size of the plot) to [-3:3].
  1478. ?set rrange
  1479. ?show rrange
  1480. ?rrange
  1481.  The `set rrange` command sets the radial range used to compute x and y
  1482.  values when in polar mode. If not in polar mode (see `set polar`) then
  1483.  this range is not used. Use of this command offsets the polar
  1484.  singularity to the <rmin> value and shifts the units on the axes tic
  1485.  marks. For instance, `set rrange [-40:40]` would set the origin to -40
  1486.  and would plot values of radial values between -40 to 40. Thus, if
  1487.  360 degrees of data were plotted, then the plot would extend 80 units
  1488.  in radially from the origin.  To view the entire plot,  a 
  1489.  `set yrange [-80:80]` command would create a square viewport with
  1490.  a circular plot tangent at the axes.  Because `xrange` is used
  1491.  specify the angular extent, only a square viewport can be specified
  1492.  by `yrange`.  For instance, `set yrange [0:80]` would display the
  1493.  first quadrant and `set yrange [-80:0]` would display the third
  1494.  quadrant.  Any square viewport of any size can be specified but it
  1495.  is constrained to be centered on a 45 degree line.
  1496.  
  1497.  This range may also be specified on the `plot` command line when in
  1498.  polar mode.
  1499.  
  1500.  Syntax:
  1501.          set rrange [{<rmin> : <rmax>}]
  1502.  
  1503.  where <rmin> and <rmax> terms are constants or expressions.
  1504.  
  1505.  Both the <rmin> and <rmax> terms are optional. Anything omitted will
  1506.  not be changed, so 
  1507.          set rrange [:10]
  1508.  changes rmax to 10 without affecting rmin.
  1509. ?set samples
  1510. ?show samples
  1511. ?samples
  1512.  The sampling rate of functions may be changed by the `set samples`
  1513.  command. By default, sampling is set to 100 points. A higher sampling
  1514.  rate will produce more accurate plots, but will take longer. This
  1515.  parameter no longer has any effect on data-file plotting.
  1516.  
  1517.  Syntax:
  1518.          set samples <expression>
  1519.          show samples
  1520. ?set size
  1521. ?show size
  1522. ?size
  1523.  The `set size` command scales the displayed size of the plot.  On some
  1524.  terminals, changing the size of the plot will result in text being
  1525.  misplaced. Increasing the size of the plot may produce strange
  1526.  results. Decreasing is safer.
  1527.  
  1528.  Syntax:
  1529.  
  1530.          set size {<xscale>,<yscale>}
  1531.          show size
  1532.  
  1533.  The <xscale> and <yscale> values are the scaling factors for the size.
  1534.  The defaults (1,1) are selected if the scaling factors are omitted.
  1535.  
  1536.  Examples: 
  1537.  
  1538.  To set the size to normal size use:
  1539.          set size
  1540.  To make the plot half size use:
  1541.          set size 0.5,0.5
  1542.  To show the size use:
  1543.          show size
  1544.  
  1545.  For the LaTeX and Fig terminals the default size (scale factor 1,1)
  1546.  is 5 inches wide by 3 inches high. The big Fig terminal (`bfig`) is 7
  1547.  inches wide by 5 inches high. The postscript default is landscape mode
  1548.  10 inches wide and 7 inches high. 
  1549.  Note that the size of the plot includes the space used by the labels; 
  1550.  the plotting area itself is smaller. 
  1551. ?set style
  1552. ?show style
  1553. ?style
  1554.  Plots may be displayed in one of six styles: `lines`, `points`,
  1555.  `linespoints`, `impulses`, `dots`, or `errorbars`. The `lines` style
  1556.  connects adjacent points with lines. The `points` style displays a
  1557.  small symbol at each point. The `linespoints` style does both
  1558.  `lines` and `points`. The `impulses` style displays a vertical line
  1559.  from the x axis to each point. The `dots` style plots a tiny dot at
  1560.  each data point; this is useful for scatter plots with many points.
  1561.  
  1562.  The `errorbars` style is relevant only for to data file `plot`s. It is
  1563.  treated like `points` for function `plot`s and `splot`s. For data file
  1564.  `plot`s, `errorbars` is like `points`, except that a vertical error
  1565.  bar is also drawn: for each point (x,y), a line is drawn from (x,ylow)
  1566.  to (x,yhigh). A tic mark is placed at the ends of the error bar. The
  1567.  ylow and yhigh values are read from the data file's third and fourth
  1568.  columns, or as specified with the `using` option to plot.  See `plot
  1569.  errorbars` for more information.
  1570.  
  1571.  Default styles are chosen with the `set function style` and `set
  1572.  data style` commands. See `plot style` for information about how
  1573.  to override the default plotting style for individual functions.
  1574.  
  1575.  Syntax:
  1576.          set function style <style>
  1577.          set data style <style>
  1578.          show function style
  1579.          show data style
  1580.  
  1581.  where <style> is `lines`, `points`, `linespoints`, `impulses`,
  1582.  `dots`, or `errorbars`.
  1583. ?set surface
  1584. ?set nosurface
  1585. ?show surface
  1586. ?surface
  1587.  `set surface` controls the display of surfaces. It is useful if
  1588.  contours are to be displayed by themselves. Whenever `set nosurface`
  1589.  is issued, no surface isolines/mesh will be drawn. See also `set
  1590.  contour`.
  1591.  
  1592.  Syntax:
  1593.          set surface
  1594.          set nosurface
  1595.          show surface
  1596. ?set terminal
  1597. ?show terminal
  1598. ?terminal
  1599.  GNUPLOT supports many different graphics devices. Use the `set
  1600.  terminal` command to select the type of device for which GNUPLOT
  1601.  will produce output.
  1602.  
  1603.  Syntax:
  1604.          set terminal {<terminal-type>}
  1605.          show terminal
  1606.  
  1607.  If <terminal-type> is omitted, GNUPLOT will list the available
  1608.  terminal types. <terminal-type> may be abbreviated.
  1609.  
  1610.  Use `set output` to redirect this output to a file or device.
  1611.  
  1612.  Several terminals have additional options. For example, see `dumb`,
  1613.  `iris4d`, `hpljii` or `postscript`.
  1614. ?set terminal dumb
  1615. ?dumb
  1616.  The dumb terminal driver has an optional size specification.
  1617.  
  1618.  Syntax:
  1619.          set terminal dumb {<xsize> <ysize>}
  1620.  
  1621.  where <xsize> and <ysize> set the size of the dumb terminals. Default
  1622.  is 79 by 24.
  1623.  
  1624.  Examples:
  1625.          set term dumb
  1626.          set term dumb 79 49 #(VGA screen - why would anyone want to do that!?)
  1627.  
  1628. ?set terminal hpljii
  1629. ?hpljii
  1630.  The HP LaserJet II and HP DeskJet drivers have a single option.
  1631.  
  1632.  Syntax:
  1633.          set terminal hpljii {<resolution>}
  1634.          set terminal hpdj   {<resolution>}
  1635.  
  1636.  where <resolution> is the resolution of the output in dots per inch.
  1637.  It must be `75`, `100`, `150` or `300`.
  1638.  
  1639.  Example:
  1640.          set terminal hpljii 150
  1641.  
  1642. ?set terminal iris4d
  1643. ?iris4d
  1644.  The iris4d driver can operate in two modes.
  1645.  
  1646.  Syntax:
  1647.          set terminal iris4d {24}
  1648.  
  1649.  If the hardware supports only 8 bits, use the default `set terminal
  1650.  iris4d`. If, however, the hardware supports 24 bits (8 per
  1651.  red/green/blue), use `set terminal iris4d 24`.
  1652.  
  1653.  When using 24-bit mode, the colors can be directly specified via the
  1654.  file .gnuplot_iris4d that is searched in the current directory and
  1655.  then in the home directory specified by the HOME environment variable.
  1656.  This file holds RGB values for the background, border, labels and nine
  1657.  plotting colors, in that order. For example, here is a file containing
  1658.  the default colors:
  1659.  
  1660.          85   85   85     /* Back Ground */
  1661.          0    0    0      /* Boundary */
  1662.          170  0    170    /* Labeling */
  1663.          85   255  255    /* Plot Color 1 */
  1664.          170  0    0      /* Plot Color 2 */
  1665.          0    170  0      /* Plot Color 3 */
  1666.          255  85   255    /* Plot Color 4 */
  1667.          255  255  85     /* Plot Color 5 */
  1668.          255  85   85     /* Plot Color 6 */
  1669.          85   255  85     /* Plot Color 7 */
  1670.          0    170  170    /* Plot Color 8 */
  1671.          170  170  0      /* Plot Color 9 */
  1672.  
  1673.  This file has exactly 12 lines of RGB triples. No empty lines are
  1674.  allowed and anything after the third number in line is ignored.
  1675.  
  1676. ?set terminal postscript
  1677. ?postscript
  1678.  Several options may be set in the PostScript driver.
  1679.  
  1680.  Syntax:
  1681.          set terminal postscript {<mode>} {<color>}
  1682.                                  {"<fontname>"} {<fontsize>}
  1683.  
  1684.  where <mode> is `landscape`, `portrait` or `default`. Selecting default
  1685.  sets all options to their defaults.
  1686.  <color> is either `color` or `monochrome`.
  1687.  "<fontname>" is the name of a valid PostScript font.
  1688.  <fontsize> is the size of the font in PostScript points, before 
  1689.  scaling by the `set size` command.
  1690.  Defaults are `landscape`, `monochrome`, "Courier", and 14pt.
  1691.  Default size of PostScript plot is landscape mode 10 inches wide 
  1692.  and 7 inches high.
  1693.  
  1694.  Examples:
  1695.  
  1696.          set size 1,1
  1697.          set term postscript default       # old postscript
  1698.          set term postscript landscape 22  # old psbig
  1699.          set size 0.5,0.5
  1700.          set term postscript portrait 14   # old epsf1
  1701.          set term postscript portrait 22   # old epsf2
  1702.          set size 1,1; set term post landscape color "Times-Roman" 14 
  1703.  
  1704. ?set tics
  1705. ?show tics
  1706. ?tics
  1707.  By default, tics are drawn inwards from the border on all four sides.
  1708.  The `set tics` command can be used to change the tics to be 
  1709.  drawn outwards on the left and bottom borders only.
  1710.  This is useful when doing impulse plots.
  1711.  
  1712.  Syntax:
  1713.          set tics {<direction>}
  1714.          show tics
  1715.  
  1716.  where <direction> may be `in` or `out`. `set tics` defaults to `in`.
  1717.  
  1718.  See also the `set xtics`, `set ytics`, and `set ztics` command for more
  1719.  control of tic marks.
  1720. ?set ticslevel
  1721. ?show ticslevel
  1722. ?ticslevel
  1723.  Using splot, in 3-d plots, one can adjust the relative height of the
  1724.  vertical (Z) axis using `set ticslevel`. The numeric argument provided
  1725.  specifies the location of the bottom of the scale. a zero will put it
  1726.  on the bottom grid and any positive number somewhere along the z axis.
  1727.  
  1728.  Syntax:
  1729.          set ticslevel {<level>}
  1730.          show tics
  1731.  
  1732.  where <level> is a non negative numeric argument. For example,
  1733.  
  1734.          set ticslevel 0.5
  1735.  
  1736.  sets the tics level to the default value.
  1737.  
  1738.  See also the `set view`.
  1739. ?set time
  1740. ?show time
  1741. ?time
  1742.  The optional `set time` places the time and date of the plot either
  1743.  at the top or bottom of the left margin. The exact location is
  1744.  device dependent.
  1745.  
  1746.  Syntax:
  1747.          set time {<xoff>}{,<yoff>}
  1748.          set notime
  1749.          show time
  1750.  
  1751.  Specifying constants <xoff> or <yoff> as optional offsets for the time
  1752.  will move the time <xoff> or <yoff> character screen coordinates. For
  1753.  example,
  1754.  
  1755.          set time ,-3
  1756.  
  1757.  will change only the y offset of the time, moving the title down by
  1758.  roughly the height of three characters.
  1759.  
  1760. ?set title
  1761. ?show title
  1762. ?title
  1763.  The `set title` command produces a plot title that is centered at the
  1764.  top of the plot. Using the optional x,y screen offsets, the title
  1765.  can be placed anywhere on the plot. `set title` with no parameters
  1766.  clears the title.
  1767.  
  1768.  Syntax:
  1769.           set title {"<title-text>"} {<xoff>}{,<yoff>}
  1770.           show title
  1771.  
  1772.  Specifying constants <xoff> or <yoff> as optional offsets for the
  1773.  title will move the title <xoff> or <yoff> character screen
  1774.  coordinates. Note these are screen coordinates and not plot
  1775.  coordinates. For example,
  1776.  
  1777.           set title ,-1
  1778.  
  1779.  will change only the y offset of the title, moving the title down by
  1780.  roughly the height of one character.
  1781.  
  1782.  (The Latex, EEPIC, and Imagen drivers allow \\ in a string to specify
  1783.  a newline.)
  1784. ?set trange
  1785. ?show trange
  1786. ?trange
  1787.  The `set trange` command sets the parametric range used to compute
  1788.  x and y values when in parametric mode. If not in parametric mode
  1789.  (see `set parametric`) then this range is not used. This command
  1790.  does not affect x/y autoscaling or x/y ranges.
  1791.  
  1792.  This range may also be specified on the `plot` command line when
  1793.  in parametric mode.
  1794.  
  1795.  Syntax:
  1796.          set trange [{<tmin> : <tmax>}]
  1797.  
  1798.  where <tmin> and <tmax> terms are constants or expressions.
  1799.  
  1800.  Both the <tmin> and <tmax> terms are optional. Anything omitted will
  1801.  not be changed, so 
  1802.          set trange [:10]
  1803.  changes tmax to 10 without affecting tmin.  See also `set urange` and
  1804.  `set parametric`.
  1805. ?set urange
  1806. ?show urange
  1807. ?urange
  1808.  The `set urange` and `set vrange` commands sets the parametric ranges used 
  1809.  to compute x, y, and z values when in `splot` parametric mode. If not in 
  1810.  parametric mode (see `set parametric`) then these ranges are not used. This 
  1811.  command does not affect x/y autoscaling or x/y ranges.
  1812.  
  1813.  This range may also be specified on the `splot` command line when
  1814.  in parametric mode.  See `plot` for more information
  1815.  
  1816.  Syntax:
  1817.          set urange [{<umin> : <umax>}]
  1818.  
  1819.  where <umin> and <umax> terms are constants or expressions.
  1820.  
  1821.  Both the <umin> and <umax> terms are optional. Anything omitted will
  1822.  not be changed, so 
  1823.          set urange [:10]
  1824.  changes umax to 10 without affecting umin.  See also `set trange`.
  1825. ?show variables
  1826.  The `show variables` command lists all user-defined variables and
  1827.  their values.
  1828.  
  1829.  Syntax:
  1830.          show variables
  1831. ?set view
  1832. ?show view
  1833. ?view
  1834.  The `set view` command sets the view point for `splot`s. This
  1835.  command controls the way the 3-d coordinates of the plot are mapped
  1836.  into the 2-d screen space. This command provides controls to both
  1837.  rotation and scaling of the plotted data but supports orthographic
  1838.  projections only.
  1839.  
  1840.  Syntax:
  1841.          set view <rot_x> {,{<rot_z>}{,{<scale>}{,<scale_z>}}}
  1842.          show view
  1843.  
  1844.  where <rot_x> and <rot_z> control the rotation angles (in degrees)
  1845.  along a virtual 3-d coordinate system aligned with the screen such
  1846.  that the screen horizontal axis is x, screen vertical axis is y, and
  1847.  the axis perpendicular to the screen is z. <rot_x> is bounded to the
  1848.  [0:180] range with a default of 60 degrees, while <rot_z> is bounded
  1849.  to the [0:360] range with a default of 30 degrees. <scale> controls
  1850.  the scaling of the entire `splot`, while <scale_z> scales the z axis
  1851.  only. Both scales default to 1.0.
  1852.  
  1853.  Examples:
  1854.          set view 60, 30, 1, 1
  1855.          set view ,,0.5
  1856.  
  1857.  The first sets all the four default values. The second changes 
  1858.  only scale, to 0.5.
  1859.  
  1860.  See also `set ticslevel`.
  1861. ?set vrange
  1862. ?show vrange
  1863. ?vrange
  1864.  The `set vrange` command is similar to the `set urange` command.
  1865.  Please see `set urange`.
  1866. ?set xlabel
  1867. ?show xlabel
  1868. ?xlabel
  1869.  The `set xlabel` command sets the x-axis label that is centered along
  1870.  the x axis. Using the optional x,y screen offsets, the label can be
  1871.  placed anywhere on the plot. `set xlabel` with no parameters clears
  1872.  the label.
  1873.  
  1874.  Syntax: 
  1875.           set xlabel {"<label>"} {<xoff>}{,<yoff>}
  1876.           show xlabel
  1877.  
  1878.  Specifying constants <xoff> or <yoff> as optional offsets for the
  1879.  label will move the label <xoff> or <yoff> character screen
  1880.  coordinates. For example,
  1881.  
  1882.           set xlabel -1
  1883.  
  1884.  will change only the x offset of the xlabel, moving the label roughly
  1885.  one character width to the left.
  1886.  
  1887.  (The LaTeX, EEPIC, and Imagen drivers allow \\ in a string to specify
  1888.  a newline.)
  1889. ?set xrange
  1890. ?show xrange
  1891. ?xrange
  1892.  The `set xrange` command sets the horizontal range that will be
  1893.  displayed. This command turns x axis autoscaling off.
  1894.  
  1895.  This range may also be specified on the `plot` command line.
  1896.  
  1897.  Syntax:
  1898.          set xrange [{<xmin> : <xmax>}]
  1899.  
  1900.  where <xmin> and <xmax> terms are constants or expressions.
  1901.  
  1902.  Both the <xmin> and <xmax> terms are optional. Anything omitted will
  1903.  not be changed, so 
  1904.          set xrange [:10]
  1905.  changes xmax to 10 without affecting xmin.
  1906. ?set xtics
  1907. ?set noxtics
  1908. ?show xtics
  1909. ?xtics
  1910. ?noxtics
  1911.  Fine control of the x axis tic marks is possible with the
  1912.  `set xtics` command. The x-axis tic marks may be turned off with the
  1913.  `set noxtics` command. They may be turned on (the default state) with
  1914.  `set xtics`.
  1915.  
  1916.  Syntax:
  1917.           set xtics { {<start>, <incr>{, <end>}} |
  1918.                       {({"<label>"} <pos> {, {"<label>"} <pos>}...)} }
  1919.           set noxtics
  1920.           show xtics
  1921.  
  1922.  The <start>, <incr>, <end> form specifies that a series of tics will
  1923.  be plotted on the x axis between the x values <start> and <end>
  1924.  with an increment of <incr>. If <end> is not given it is assumed to be
  1925.  infinity. The increment may be negative. For example,
  1926.            set xtics 0,.5,10
  1927.  makes tics at 0, 0.5, 1, 1.5, ..., 9.5, 10.
  1928.  
  1929.  The ("<label>" <pos>, ...) form allows arbitrary tic positions or
  1930.  non-numeric tic labels. A set of tics are a set of positions, each
  1931.  with its own optional label. Note that the label is a string enclosed
  1932.  by quotes, and may be a constant string, such as "hello", or contain
  1933.  formatting information for the tic number (which is the same as the
  1934.  position), such as "%3f clients". See `set format` for more
  1935.  information about this case. The label may even be empty.
  1936.  Examples:
  1937.           set xtics ("low" 0, "medium" 50, "high" 100)
  1938.           set xtics (1,2,4,8,16,32,64,128,256,512,1024)
  1939.           set xtics ("bottom" 0, "" 10, "top" 20)
  1940.  
  1941.  Tics will only be plotted when in range.
  1942.  
  1943.  The `set ytics` and `set noytics` commands work identically.
  1944.  See also the `set format` command.
  1945. ?set xzeroaxis
  1946. ?set noxzeroaxis
  1947. ?show xzeroaxis
  1948. ?xzeroaxis
  1949. ?noxzeroaxis
  1950.  `set xzeroaxis` draws the x-axis. By default, this option is on.
  1951.  `set noxzeroaxis` causes GNUPLOT to omit the x-axis.
  1952.  
  1953.  Syntax:
  1954.          set xzeroaxis
  1955.          set noxzeroaxis
  1956.          show xzeroaxis
  1957. ?set ylabel
  1958. ?show ylabel
  1959. ?ylabel
  1960.  The `set ylabel` command sets the y-axis label.  The position of this
  1961.  label depends on the terminal, and can be one of the following three
  1962.  positions (the position can be adjusted with optional parameters).
  1963.  
  1964.  1. Horizontal text flushed left at the top left of the plot.
  1965.  Terminals that cannot rotate text will probably use this method.
  1966.  
  1967.  2. Vertical text centered vertically at the left of the plot.
  1968.  Terminals that can rotate text will probably use this method.
  1969.  
  1970.  3. Horizontal text centered vertically at the left of the plot.
  1971.  The LaTeX and EEPIC drivers use this method. The user must insert 
  1972.  line breaks using \\ to prevent the ylabel from overwriting
  1973.  the plot. To produce a vertical row of characters, add \\
  1974.  between every printing character (but this is ugly).
  1975.  
  1976.  Syntax:  
  1977.           set ylabel {"<label>"} {<xoff>}{,<yoff>}
  1978.           show ylabel
  1979.  
  1980.  With no parameters, the label is cleared. Specifying constants <xoff>
  1981.  or <yoff> as optional offsets for the label will move the label <xoff>
  1982.  or <yoff> character screen coordinates. For example,
  1983.  
  1984.           set ylabel -1
  1985.  
  1986.  will change only the x offset of the ylabel, moving the label roughly
  1987.  one character width left of its default position. This is especially
  1988.  useful with the LaTeX driver.
  1989.  
  1990.  (The LaTeX, EEPIC, and Imagen drivers allow \\ in a string to specify
  1991.  a newline.)
  1992. ?set yrange
  1993. ?show yrange
  1994. ?yrange
  1995.  The `set yrange` command sets the vertical range that will be
  1996.  displayed. This command turns y axis autoscaling off.
  1997.  
  1998.  This range may also be specified on the `plot` command line.
  1999.  
  2000.  Syntax:
  2001.          set yrange [{<ymin> : <ymax>}]
  2002.  
  2003.  where <ymin> and <ymax> terms are constants or expressions.
  2004.  
  2005.  Both the <ymin> and <ymax> terms are optional. Anything omitted will
  2006.  not be changed, so 
  2007.          set yrange [:10]
  2008.  changes ymax to 10 without affecting ymin.
  2009. ?set ytics
  2010. ?set noytics
  2011. ?show ytics
  2012. ?ytics
  2013. ?noytics
  2014.  The `set ytics` and `set noytics` commands are similar to the `set xtics`
  2015.  and `set noxtics` commands. Please see `set xtics`.
  2016. ?set yzeroaxis
  2017. ?set noyzeroaxis
  2018. ?show yzeroaxis
  2019. ?yzeroaxis
  2020. ?noyzeroaxis
  2021.  `set yzeroaxis` draws the y-axis. By default, this option is on.
  2022.  `set noyzeroaxis` causes GNUPLOT to omit the y-axis.
  2023.  
  2024.  Syntax:
  2025.          set yzeroaxis
  2026.          set noyzeroaxis
  2027.          show yzeroaxis
  2028. ?set zero
  2029. ?show zero
  2030. ?zero
  2031.  The `zero` value is the default threshold for values approaching 0.0.
  2032.  GNUPLOT will not plot a point if its imaginary part is greater in
  2033.  magnitude than the `zero` threshold. Axis ranges cannot be less than
  2034.  `zero`. The default `zero` value is 1e-8. This can be changed with
  2035.  the `set zero` command.
  2036.  
  2037.  Syntax:
  2038.          set zero <expression>
  2039.          show zero
  2040. ?set zeroaxis
  2041. ?set nozeroaxis
  2042. ?show zeroaxis
  2043. ?zeroaxis
  2044. ?nozeroaxis
  2045.  `set zeroaxis` draws the x-axis and y-axis. By default, this option is
  2046.  on.  `set nozeroaxis` causes GNUPLOT to omit the axes, and is
  2047.  equivalent to `set noxzeroaxis; set noyzeroaxis.`
  2048.  
  2049.  Syntax:
  2050.          set zeroaxis
  2051.          set nozeroaxis
  2052.          show zeroaxis
  2053.  See `set xzeroaxis` and `set yzeroaxis`.
  2054. ?set zlabel
  2055. ?show zlabel
  2056. ?zlabel
  2057.  The `set zlabel` command sets the z-axis label that is centered along
  2058.  the z axis. Using the optional x,y screen offsets, the label can be
  2059.  placed anywhere on the plot. `set zlabel` with no parameters clears
  2060.  the label.
  2061.  
  2062.  Syntax: 
  2063.           set zlabel {"<label>"} {<xoff>}{,<yoff>}
  2064.           show zlabel
  2065.  
  2066.  Specifying constants <xoff> or <yoff> as optional offsets for the
  2067.  label will move the label <xoff> or <yoff> character screen
  2068.  coordinates. For example,
  2069.  
  2070.           set zlabel ,1
  2071.  
  2072.  will change only the y offset of the zlabel, moving the label roughly
  2073.  one character height up.
  2074.  
  2075.  The zlabel will be drawn whenever surfaces or contours are plotted,
  2076.  in the space above the grid level.
  2077.  
  2078.  (The LaTeX, EEPIC, and Imagen drivers allow \\ in a string to specify
  2079.  a newline.)
  2080. ?set zrange
  2081. ?show zrange
  2082. ?zrange
  2083.  The `set zrange` command sets the vertical range that will be
  2084.  displayed. This command turns z axis autoscaling off.  The zrange is
  2085.  used only by `splot` and is ignored by `plot`.
  2086.  
  2087.  This range may also be specified on the `splot` command line.
  2088.  
  2089.  Syntax:
  2090.          set zrange [{<zmin> : <zmax>}]
  2091.  
  2092.  where <zmin> and <zmax> terms are constants or expressions.
  2093.  
  2094.  Both the <zmin> and <zmax> terms are optional. Anything omitted will
  2095.  not be changed, so
  2096.          set zrange [2:]
  2097.  changes zmin to 2 without affecting zmax.
  2098. ?set ztics
  2099. ?set noztics
  2100. ?show ztics
  2101. ?ztics
  2102. ?noztics
  2103.  The `set ztics` and `set noztics` commands are similar to the `set
  2104.  xtics` and `set noxtics` commands. Please see `set xtics`.
  2105. ?shell
  2106.  The `shell` command spawns an interactive shell. To return to
  2107.  GNUPLOT, type `logout` if using VMS, `exit` or the END-OF-FILE
  2108.  character if using Unix, `endcli` if using AmigaDOS, or `exit` if
  2109.  using MS-DOS.
  2110.  
  2111.  A single shell command may be spawned by preceding it with the !
  2112.  character ($ if using VMS) at the beginning of a command line.
  2113.  Control will return immediately to GNUPLOT after this command is
  2114.  executed. For example, in VMS, AmigaDOS, or MS-DOS,
  2115.  
  2116.       ! dir
  2117.  
  2118.  prints a directory listing and then returns to GNUPLOT.
  2119.  Three-dimensional surface and contour plotting is available in
  2120.  GNUPLOT with the `splot` command. See the `plot` command for features
  2121.  common to the `plot` command.
  2122.  
  2123.  See also `set contour`, `set cntrparam`, and `set surface`.
  2124. ?startup
  2125. ?start
  2126. ?.gnuplot
  2127.  When GNUPLOT is run, it looks for an initialization file to load.
  2128.  This file is called `.gnuplot` on Unix and AmigaDOS systems, and
  2129.  `GNUPLOT.INI` on other systems. If this file is not found in the
  2130.  current directory, the program will look for it in the home directory
  2131.  (under AmigaDOS and MS-DOS, the environment variable GNUPLOT should
  2132.  contain the name of this directory).
  2133.  
  2134.  If this file is found, GNUPLOT executes the commands in this file.
  2135.  This is most useful for setting the terminal type and defining any
  2136.  functions or variables that are used often.
  2137. ?substitution
  2138.  Command-line substitution is specified by a system command enclosed in
  2139.  backquotes. This command is spawned and the output it produces
  2140.  replaces the name of the command (and backquotes) on the command line.
  2141.  
  2142.  Newlines in the output produced by the spawned command are replaced
  2143.  with blanks.
  2144.  
  2145.  Command-line substitution can be used anywhere on the GNUPLOT command
  2146.  line.
  2147.  
  2148.  Example:
  2149.  
  2150.  This will run the program `leastsq` and replace `leastsq` (including
  2151.  backquotes) on the command line with its output:
  2152.  
  2153.           f(x) = `leastsq`
  2154.  
  2155.  or, in VMS
  2156.  
  2157.           f(x) = `run leastsq`
  2158. ?userdefined
  2159. ?variables
  2160.  New user-defined variables and functions of one or two variables may be 
  2161.  declared and used anywhere.
  2162.  
  2163.  User-defined function syntax:
  2164.          <function-name> ( <dummy-var1> {,<dummy-var2>} ) =  <expression>
  2165.  
  2166.  where <expression> is defined in terms of <dummy-var1> and <dummy-var2>.
  2167.  
  2168.  User-defined variable syntax:
  2169.          <variable-name> = <constant-expression>
  2170.  
  2171.  Examples:
  2172.          w = 2
  2173.          q = floor(tan(pi/2 - 0.1))
  2174.          f(x) = sin(w*x)
  2175.          sinc(x) = sin(pi*x)/(pi*x)
  2176.          delta(t) = (t == 0)
  2177.          ramp(t) = (t > 0) ? t : 0
  2178.          min(a,b) = (a < b) ? a : b
  2179.          comb(n,k) = n!/(k!*(n-k)!)
  2180.  
  2181.  Note that the variable `pi` is already defined.
  2182.  
  2183.  See `show functions` and `show variables`.
  2184. ?bugs
  2185.  The atan() function does not work correctly for complex arguments.
  2186.  
  2187.  The bessel functions do not work for complex arguments.
  2188.  
  2189.  The gamma function does not work for complex arguments.
  2190.  
  2191.  There is a bug in the stdio library for old Sun operating systems
  2192.  (SunOS Sys4-3.2). The "%g" format for 'printf' sometimes incorrectly
  2193.  prints numbers (e.g., 200000.0 as "2"). Thus, tic mark labels may be
  2194.  incorrect on a Sun4 version of GNUPLOT. A work-around is to rescale
  2195.  the data or use the `set format` command to change the tic mark format
  2196.  to "%7.0f" or some other appropriate format. This appears to have been
  2197.  fixed in SunOS 4.0.
  2198.  
  2199.  Another bug: On a Sun3 under SunOS 4.0, and on Sun4's under Sys4-3.2
  2200.  and SunOS 4.0, the 'sscanf' routine incorrectly parses "00 12" with
  2201.  the format "%f %f" and reads 0 and 0 instead of 0 and 12. This
  2202.  affects data input. If the data file contains x coordinates that are
  2203.  zero but are specified like '00', '000', etc, then you will read the
  2204.  wrong y values. Check any data files or upgrade the SunOS.
  2205.  It appears to have been fixed in SunOS 4.1.1.
  2206.  
  2207.  Microsoft C 5.1 has a nasty bug associated with the %g format for
  2208.  printf. When any of the formats "%.2g", "%.1g", "%.0g", "%.g" are
  2209.  used, printf will incorrectly print numbers in the range 1e-4 to 1e-1.
  2210.  Numbers that should be printed in the %e format are incorrectly 
  2211.  printed in the %f format, with the wrong number of zeros after the 
  2212.  decimal point.
  2213.  
  2214.  To work around this problem, use the %e or %f formats explicitly.
  2215.  
  2216.  GNUPLOT, when compiled with Microsoft C, did not work correctly on two
  2217.  VGA displays that were tested. The CGA, EGA and VGA drivers should 
  2218.  probably be rewritten to use the Microsoft C graphics library.
  2219.  GNUPLOT compiled with Turbo C uses the Turbo C graphics drivers and 
  2220.  does work correctly with VGA displays.
  2221.  
  2222.  VAX/VMS 4.7 C compiler release 2.4 also has a poorly implemented %g 
  2223.  format for printf. The numbers are printed numerically correct, but 
  2224.  may not be in the requested format. The K&R second edition says that 
  2225.  for the %g format, %e is used if the exponent is less than -4 or greater 
  2226.  than or equal to the precision. The VAX uses %e format if the exponent 
  2227.  is less than -1. The VAX appears to take no notice of the precision 
  2228.  when deciding whether to use %e or %f for numbers less than 1.
  2229.  To work around this problem, use the %e or %f formats explicitly.
  2230.  From the VAX C 2.4 release notes:
  2231.  e,E,f,F,g,G  Result will always contain a decimal  point.
  2232.  For g and G, trailing zeros will not be removed from the result.
  2233.  
  2234.  VAX/VMS 5.2 C compiler release 3.0 has a slightly better implemented
  2235.  %g format than release 2.4, but not much. Trailing decimal points are 
  2236.  now removed, but trailing zeros are still not removed from %g numbers 
  2237.  in exponential format.
  2238.  
  2239.  ULTRIX X11R3 has a bug that causes the X11 driver to display "every
  2240.  other" plot.  The bug seems to be fixed in DEC's release of X11R4 so
  2241.  newer releases of ULTRIX don't seem to have the problem.  Solutions for 
  2242.  older sites include upgrading the X11 libraries (from DEC or direct from 
  2243.  MIT) or defining ULTRIX_KLUDGE when compiling the x11.trm file.  Note 
  2244.  that the kludge is not an ideal fix, however.
  2245.  
  2246.  The constant HUGE was incorrectly defined in the NeXT OS 2.0 operating
  2247.  system.  HUGE should be set to 1e38 in plot.h. This error has been
  2248.  corrected in the 2.1 version of NeXT OS.
  2249.  
  2250.  Please report any bugs to pixar!bug-gnuplot@sun.com or
  2251.  pixar!bug-gnuplot@ucbvax.berkeley.edu.
  2252.